package com.x.chalk.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UsefulNewsComment {
    /** 序号 */
    private Integer id ;
    /** 干货ID */
    private Integer usefulnewsId ;
    /** 评论用户ID */
    private Integer uid ;
    /** 评论内容 */
    private String info ;
    /** 评论ID */
    private Integer commentId ;
    /** 创建时间 */
    private Date ctime ;

    public UsefulNewsComment(Integer usefulnewsId, Integer uid, String info, Integer commentId) {
        this.usefulnewsId = usefulnewsId;
        this.uid = uid;
        this.info = info;
        this.commentId = commentId;
        this.ctime = new Date();
    }
}
